import { post } from '@/utils/request'

// 查询客户流程列表
export const getFriendsLifeCycleList = p => post(`/service-cop/b/friendsLifeCycle/v1/list`, p)
// 查询客户流程详情
export const viewFriendsLifeCycle = p => post(`/service-cop/b/friendsLifeCycle/v1/view/${p.id}`, p, 'get')
// 添加客户流程
export const addFriendsLifeCycle = p => post(`/service-cop/b/friendsLifeCycle/v1/add`, p)
// 修改客户流程
export const modifyFriendsLifeCycle = p => post(`/service-cop/b/friendsLifeCycle/v1/modify`, p)
// 删除客户流程
export const delFriendsLifeCycle = p => post(`/service-cop/b/friendsLifeCycle/v1/del/${p.id}`, p, 'get')
// 删除客户流程
export const changeFriendsLifeCycleStatus = p => post(`/service-cop/b/friendsLifeCycle/v1/changeStatus/${p.id}/${p.status}`, p, 'get')
// 查询客户流程阶段列表
export const getFriendsLifeCyclePhaseList = p => post(`/service-cop/b/friendsLifeCycle/v1/phaseList`, p)
